package com.lz.ccjdemo.act;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.facebook.shimmer.ShimmerFrameLayout;
import com.lz.ccjdemo.R;

import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

/**
 * //单个控件设置
 * <p>
 * <TextView
 * android:text="@string/hello_world"
 * android:layout_width="wrap_content"
 * android:layout_height="wrap_content"
 * style="@style/TextViewCustomFont"/>
 * <p>
 * <style name="TextViewCustomFont">
 * <item name="fontPath">fonts/RobotoCondensed-Regular.ttf</item>
 * </style>
 * <p>
 * //全局配置
 * protected void attachBaseContext(Context newBase) {
 * super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
 * }
 */
public class TypefaceActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_typeface);
    }


    /**
     * 设置字体  全局字体修改的话  建议设置在BaseActivity
     */
    @Override
    protected void attachBaseContext(Context newBase) {
        super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
    }
}
